<?php

use Illuminate\Support\Facades\DB;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent;

class TeacherTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        DB::table('teachers')->insert([
            'tid'=>'1001',
            'name'=>'王德明',
            'sex'=>'男',
            'age'=>40,
            'department_id'=>1,
        ]);
        DB::table('teachers')->insert([
            'tid'=>'1002',
            'name'=>'李敏',
            'sex'=>'女',
            'age'=>36,
            'department_id'=>2,
        ]);

        DB::table('teachers')->insert([
            'tid'=>'1003',
            'name'=>'王美文',
            'sex'=>'女',
            'age'=>9,
            'department_id'=>3,
        ]);
        DB::table('teachers')->insert([
            'tid'=>'1004',
            'name'=>'张建平',
            'sex'=>'男',
            'age'=>50,
            'department_id'=>2,
        ]);
        DB::table('teachers')->insert([
            'tid'=>'1005',
            'name'=>'金鹏',
            'sex'=>'男',
            'age'=>35,
            'department_id'=>1,
        ]);
        DB::table('teachers')->insert([
            'tid'=>'1006',
            'name'=>'王天飞',
            'sex'=>'男',
            'age'=>39,
            'department_id'=>4,
        ]);
        DB::table('teachers')->insert([
            'tid'=>'1007',
            'name'=>'向清详',
            'sex'=>'男',
            'age'=>52,
            'department_id'=>3,
        ]);

        DB::table('teachers')->insert([
            'tid'=>'1008',
            'name'=>'李冰',
            'sex'=>'女',
            'age'=>32,
            'department_id'=>4,
        ]);
    }
}
